﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="TaoBaoApi_TB_Size" Codebehind="TB_Size.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>尺码管理</title>
</head>
<body>
    <form id="form1" runat="server">
   <div align="justify">
        <h2>淘宝尺码关联</h2>     
        <div class="juli">                   
            <asp:GridView ID="gvList" runat="server"  AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" OnPageIndexChanging="gvList_PageIndexChanging" OnRowCreated="gvList_RowCreated">
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate><asp:CheckBox ID="chkAll" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_OnCheckedChanged" /></HeaderTemplate> 
                        <ItemTemplate><asp:CheckBox ID="chkOne" runat="Server" /></ItemTemplate> 
                    </asp:TemplateField>
                    <asp:BoundField DataField="mid" HeaderText="编号" />
                    <asp:TemplateField>
                        <HeaderTemplate>本地尺码</HeaderTemplate>
                        <ItemTemplate><%# GetBDColorName( Eval("field1")) %></ItemTemplate>  
                    </asp:TemplateField>   
                    <asp:BoundField DataField="tb_mc" HeaderText="淘宝尺码" />                   
                </Columns>
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#E3EAEB" />
                <EditRowStyle BackColor="#7C6F57" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle HorizontalAlign="Left" />
                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            </div>         
          <div class="juli">
               <asp:Button ID="btnEdit" runat="server" Text="编辑选定关联" OnClick="btnEdit_Click"  />
               <asp:Button ID="btnDel" runat="server" Text="删除选定关联" OnClick="btnDel_Click"  />
          </div> 
         <br /> 
          <div id="divInfo" runat="server" class="menu_bg" >
                <table>                 
                    <tr>
                        <td>本地尺码：</td>
                        <td><asp:DropDownList ID="ddlColor" runat="Server" /></td>  
                    </tr>              
                     <tr>
                        <td>淘宝尺码：</td>
                        <td><asp:DropDownList ID="ddlTBColor" runat="Server" /></td>  
                    </tr>                         
                    <tr>
                        <td colspan="2"> 
                             <asp:Button ID="btnAdd" runat="server" Text="保存关联" OnClick="btnAdd_Click"  />&nbsp;
                             </td> 
                    </tr> 
                </table>
          </div> 
    </div>
    </form>
</body>
</html>
